//
//  SZRecommendRewardModel.h
//  GBKTrade
//
//  Created by sumrain on 2018/7/2.
//  Copyright © 2018年 LionIT. All rights reserved.
//

#import "SZHttpsService.h"
#import "SZHTTPSRsqManager.h"
@implementation SZHttpsService
DEFINE_SINGLETON_FOR_CLASS(SZHttpsService)

#pragma mark-  验证码（登录前）
-(RACSignal*)signalRequestMsgCodeWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/validationMsg",BaseHttpUrl];

        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark-  验证码（登录后）
-(RACSignal*)signalRequestMsgCodeTokenWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/tokenMsg",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark- 修改密码
-(RACSignal*)signalModifyPasswordWithParameters:(NSDictionary*)parameters
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@users/password",BaseHttpUrl];
        
        [SZHTTPSReqManager putRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark- 退出登录
-(RACSignal*)signalLoginOut
{    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@users/logout",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}
#pragma mark- 修改密码
-(RACSignal*)signalSetLoginPwdWithParameters:(NSDictionary*)parameters
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString* urlString=[NSString stringWithFormat:@"%@users/forgetPassword",BaseHttpUrl];;
    
        
        [SZHTTPSReqManager putRequestWithUrlString:urlString appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject){
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark- 获取游戏详情
-(RACSignal*)signalRequestGameInfoWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@game/bureau",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters  successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark- 获取游戏结果
-(RACSignal*)signalRequestGameResultWithParameter:(id)parameters{

    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@game/bureau/last",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters  successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
    
}

#pragma mark- 获取用户投注进出场列表
-(RACSignal*)signalRequestBetInfoListWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@game/orderlog",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters  successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark- 下注
-(RACSignal*)signalRequestGameBetWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/c2c/paymentWay",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil   bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark - 支付设置
- (RACSignal *)signalRequestpaySettingWithParamters:(NSDictionary *)parameters {
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@game/order",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil   bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark- 修改密码
-(RACSignal*)signalModifyPasswordWithNewPwd:(NSString*)newPwd  originPwd:(NSString*)originPwd phoneCode:(NSString*)phoneCode pwdType:(NSString*)pwdType reNewPwd:(NSString*)reNewPwd totpCode:(NSString*)totpCode
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/modifyPwd.do",BaseHttpUrl];
        NSDictionary* parameters=@{@"newPwd":newPwd,@"originPwd":originPwd,@"phoneCode":phoneCode,@"pwdType":@([pwdType integerValue]),@"reNewPwd":reNewPwd};
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark-  获取用户数据信息
-(RACSignal*)signalRequestGetSecurityInfoParameter:(id)parameters{
    
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@users/profile",BaseHttpUrl];
        
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
            
        }];
        return nil;
    }];
    
    return dataSignal;
    
}
#pragma mark - 登录
- (void)loginApp:(NSDictionary *)parDict success:(successResponseBlock)successBlock fail:(failResponseBlock)failBlock {
    NSString * urlStr = [NSString stringWithFormat:@"%@users/login",BaseHttpUrl];
    
    [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parDict successBlock:^(id responseObject) {
        successBlock(responseObject);
    } failureBlock:^(NSError *error) {
        failBlock(error);
    }];
}



#pragma mark - 注册
- (void)registerAccount:(NSDictionary *)parDict success:(successResponseBlock)successBlock fail:(failResponseBlock)failBlock {
    NSString * urlStr = [NSString stringWithFormat:@"%@users",BaseHttpUrl];
    
    [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parDict successBlock:^(id responseObject) {
        successBlock(responseObject);
    } failureBlock:^(NSError *error) {
        failBlock(error);
    }];
}



#pragma mark-  用户相互转账
-(RACSignal*)signalRequestTransferFundsWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/transfer",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}




#pragma mark-  查询往期记录
-(RACSignal*)signalRequestPastRecordWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@game/result/history",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark-  查询往期明细
-(RACSignal*)signalRequestPastRecordDetailWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@game/result/historyDetail",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark-  查询资产转账记录
-(RACSignal*)signalRequestFundsRecordWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/transition",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark- 修改昵称
-(RACSignal*)signalRequestModifyNickNameWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/profile",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 版本更新
-(RACSignal*)signalRequestAppUpdateWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@app/version",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 系统公告
-(RACSignal*)signalRequestNoticeWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@notice",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 游戏说明
-(RACSignal*)signalRequestGameIntroduceWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@gameDescription",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 关于我们
-(RACSignal*)signalRequestAboutUsWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/customService",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}



#pragma mark - 获取汇率
-(RACSignal*)signalRequestGBKRateWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/gbkRate",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 获取充币地址
-(RACSignal*)signalRequestDepositAddressWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/rechargeAddress",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 保存充币信息
-(RACSignal*)signalRequestSaveDepositWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/recharge",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 标记已充值
-(RACSignal*)signalRequestMarkPaymentWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/recharge/markedPayment",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}

#pragma mark - 充币取消订单
-(RACSignal*)signalRequestMarkCancelWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/recharge/markedCancel",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 充币列表
-(RACSignal*)signalRequestDepositListWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/recharge",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 保存提币信息
-(RACSignal*)signalRequestSaveWithdrawWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/withdraw",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}

#pragma mark - 标记提币信息取消
-(RACSignal*)signalRequestWithdrawMarkCancelWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/withdraw/markedCancel",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark - 提币列表
-(RACSignal*)signalRequestwithdrawListWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/withdraw",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}



#pragma mark-  我的分销
-(RACSignal*)signalRequestMyRecommendWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@users/fxinfo",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
-(RACSignal*)signalRequestIsOpenSimulationAWithParameters:(NSDictionary*)parameters{
   
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@game/sys-config/enablevirtual",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
    
    
}




#pragma mark - 获取买卖币支持付款方式
-(RACSignal*)signalRequestPayTypeWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/payType",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 银行卡买卖币
-(RACSignal*)signalRequestTradeByBankWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@order/buyToken/GBKBank",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 支付宝买卖币
-(RACSignal*)signalRequestTradeByAlipayWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@order/buyToken/GBKAlipay",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 获取买卖币列表
-(RACSignal*)signalRequestBuySellListWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@order/buyToken/bankList",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 获取买币详情
-(RACSignal*)signalRequestBuyDetailWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {

        NSString * urlStr = [NSString stringWithFormat:@"%@order/buyToken/detail",BaseHttpUrl];

        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark - 获取卖币详情
-(RACSignal*)signalRequestSellDetailWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@order/sellToken/detail",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}



#pragma mark - 标记已付款 待付款取消订单 确认中取消订单
-(RACSignal*)signalRequestTradeOrderOperationWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@order/buyToken/operation",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark -支持的银行卡类型列表
-(RACSignal*)signalRequestBankListWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/allBank",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


#pragma mark-  兑币额度记录
-(RACSignal*)signalRequestFundsLimitRecordWithParameters:(NSDictionary*)parameters
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/freeBalance",BaseHttpUrl];
        
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}



#pragma mark-  短信验证码
-(RACSignal*)signalRequestWithdrawSecurityCodeWithPhone:(NSString*)phone areaCode:(NSString*)areaCode securityCodeType:(NSString*)securityCodeType
{
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr;
        NSDictionary* parameters;
        if ([phone isMobliePhone]) {
            urlStr = [NSString stringWithFormat:@"%@/user/sendMsg.do",BaseHttpUrl];
            parameters=@{@"phone":phone,@"areaCode":areaCode,@"type":securityCodeType};
        }else{
            urlStr = [NSString stringWithFormat:@"%@/user/sendMailCode.do",BaseHttpUrl];
            parameters=@{@"email":phone,@"type":securityCodeType};
        }
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark-  邮箱验证码
-(RACSignal*)signalRequestEmailCodeWithEmail:(NSString*)email securityCodeType:(NSString*)securityCodeType
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/sendMailCode.do",BaseHttpUrl];
        NSDictionary* parameters=@{@"email":email,@"type":securityCodeType};
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
    
}






#pragma mark-  绑定手机
-(RACSignal*)signalBindPhoneWithAreaCode:(NSString*)areaCode phone:(NSString*)phone newCode:(NSString*)newCode {
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/validatePhone.do?areaCode=%@&phone=%@&newcode=%@",BaseHttpUrl,areaCode,phone,newCode];
        
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
    
}
#pragma mark- 忘记密码验证
-(RACSignal*)signalcheckSecurityCodeWithPhone:(NSString*)phone  msgCode:(NSString*)msgCode
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/resetPhoneValidation.do?phone=%@&msgcode=%@",BaseHttpUrl,phone,msgCode];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark- 忘记邮箱验证
-(RACSignal*)signalcheckSecurityCodeWithEmail:(NSString*)Email  msgCode:(NSString*)msgCode
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/findPwdByEmail.do?email=%@&ecode=%@",BaseHttpUrl,Email,msgCode];
        
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark- 修改密码
-(RACSignal*)signalSetLoginPwdWithPhone:(NSString*)phone  newPassword:(NSString*)newPassword msgCode:(NSString*)msgCode
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString* urlString;
        NSDictionary* bodyParameters;
        if ([phone isEmail]) {
            urlString = [NSString stringWithFormat:@"%@/user/resetMailPwd.do?email=%@&newPwd=%@&ecode=%@",BaseHttpUrl,phone,newPassword,msgCode];
            //          bodyParameters=@{@"email":phone,@"newPwd":newPassword,@"ecode":msgCode};
        }else if ([phone isMobliePhone]){
            urlString = [NSString stringWithFormat:@"%@/user/resetPhonePwd.do?phone=%@&newPwd=%@&ecode=%@",BaseHttpUrl,phone,newPassword,msgCode];
            //           bodyParameters=@{@"email":phone,@"newPwd":newPassword,@"ecode":msgCode};
        }
        
        [SZHTTPSReqManager postRequestWithUrlString:urlString appendParameters:nil bodyParameters:bodyParameters successBlock:^(id responseObject){
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}


#pragma mark-上传身份认证图片
-(RACSignal*)signalRequestUploadIDPhotosWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/common/upload.do",BaseHttpUrl];
        [SZHTTPSReqManager postUploadWithUrl:urlStr image:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } successBlock:^(NSError *error) {
            [subscriber sendError:error];
            
        }];
        return nil;
    }];
    return dataSignal;
    
}

#pragma mark- 提交身份认证信息
-(RACSignal*)signalRequestCommitIDInfoWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/validateKyc.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    return dataSignal;
    
}

#pragma mark- 获取钱包总额列表 币币 C2C 锁仓
-(RACSignal*)signalRequestWalletTotalParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@sys/wallet/account",BaseHttpUrl];
        [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}
#pragma mark-  获取C2C资产列表
-(RACSignal*)signalRequestGetC2CPropertyListParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/c2c/assets/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}

#pragma mark-  获取C2C资产账户明细列表
-(RACSignal*)signalRequestGetC2CPropertyDetailParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/c2c/orderRecord/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark- 获取财务列表
-(RACSignal*)signalRequestPropertyListWithParameter:(id)parameters{
    
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/financial/index.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:@{@"currentPage":@(1)} bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark-  获取锁仓币中列表
-(RACSignal*)signalRequestGetScPropertyListParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/lock/accountMngList.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}

#pragma mark-  获取锁仓账户明细列表
-(RACSignal*)signalRequestGetScPropertyDetailParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/lock/accountRecordList.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
    
}

#pragma mark-  获取财务记录明细
-(RACSignal*)signalRequestGetPropertyRecordsParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/lock/accountRecordList.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}
#pragma mark-  币币与C2C资金相互划转
-(RACSignal*)signalRequestC2CBBTransfersParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/c2c/userferCurrencyTrans.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark-  获取币种列表
-(RACSignal*)signalRequestBBPropertyListWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/financial/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}
#pragma mark-  获取充值地址
-(RACSignal*)signalRequestPropertyAddressWithParameter:(id)parameters{
    
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        //       NSString * urlStr = [NSString stringWithFormat:@"%@/account/rechargeBtc.do?currentPage=1&symbol=%@",BaseHttpUrl,parameters];
        NSString * urlStr = [NSString stringWithFormat:@"%@/account/rechargeBtc.do",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:@{@"currentPage":@(1),@"symbol":parameters} bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
    
}


#pragma mark-  手动获取充值地址
-(RACSignal*)signalRequestManualPropertyAddressWithParameter:(id)parameters{
    
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/account/getVirtualAddress.do",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:@{@"symbol":parameters} bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}
#pragma mark-  虚拟货币提现
-(RACSignal*)signalRequestPropertyDrawRtcWithParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/account/withdrawBtc.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:@{@"symbol":parameters} bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    return dataSignal;
}


//#pragma mark-  虚拟货币提现提交
//-(RACSignal*)signalRequestCommitWithdrawWithAddress:(NSString*)address withdrawAddr:(NSString*)withdrawAddr withdrawAmount:(NSString*)withdrawAmount tradePwd:(NSString*)tradePwd googleCode:(NSString*)googleCode phoneCode:(NSString*)phoneCode symbol:(NSString*)symbol
//{
//    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
//        NSString * urlStr = [NSString stringWithFormat:@"%@/account/withdrawBtcSubmit.do?address=%@&withdrawAddr=%@&withdrawAmount=%@&tradePwd=%@&totpCode=%@&phoneCode=%@&symbol=%@&level=%ld",BaseHttpUrl,address,withdrawAddr,withdrawAmount,tradePwd,googleCode,phoneCode,symbol,[UserInfo sharedUserInfo].level];
//        
//        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
//            [subscriber sendNext:responseObject];
//            [subscriber sendCompleted];
//        } failureBlock:^(NSError *error) {
//            [subscriber sendError:error];
//        }];
//        return nil;
//    }];
//    
//    return dataSignal;
//}



#pragma mark-  获取币种及地址数目列表
-(RACSignal*)signalRequestGetCoinListWithParameter:(id)parameters
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@/financial/withdrawcoin.do",BaseHttpUrl];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:parameters successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}
#pragma mark-  获取币种详情，地址列表，备注信息等
-(RACSignal*)signalRequestAddressDetailWithSymbol:(NSString*)symbol {
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        
        NSString * urlStr = [NSString stringWithFormat:@"%@/financial/accountcoin.do?symbol=%@",BaseHttpUrl,symbol];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
    
}



#pragma mark-  添加提币地址
-(RACSignal*)signalRequestAddAddressWithAddress:(NSString*)withdrawAddr  googleCode:(NSString*)googleCode phoneCode:(NSString*)phoneCode symbol:(NSString*)symbol addressRemark:(NSString*)withdrawRemark
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/modifyWithdrawAddr.do?withdrawAddr=%@&phoneCode=%@&symbol=%@&withdrawRemark=%@",BaseHttpUrl,withdrawAddr,phoneCode,symbol,withdrawRemark];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark-  删除提币地址
-(RACSignal*)signalRequestdeleteAddressWithAddressId:(NSString*)addressId
{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/user/detelCoinAddress.do?fid=%@",BaseHttpUrl,addressId];
        
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:nil bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        return nil;
    }];
    
    return dataSignal;
}







#pragma mark-  推广奖励
-(RACSignal*)signalRequestPromotionRecordsParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/recommend/reward/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters  bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark-  返佣记录
-(RACSignal*)signalRequestCommissionRecordsParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/recommend/rebates/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}

#pragma mark-  我的推荐
-(RACSignal*)signalRequestMineRecommendRecordsParameter:(id)parameters{
    
    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
        NSString * urlStr = [NSString stringWithFormat:@"%@/recommend/list.do",BaseHttpUrl];
        [SZHTTPSReqManager postRequestWithUrlString:urlStr appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
            [subscriber sendNext:responseObject];
            [subscriber sendCompleted];
        } failureBlock:^(NSError *error) {
            [subscriber sendError:error];
        }];
        
        return nil;
    }];
    
    return dataSignal;
}
#pragma mark - 我的广告
- (NSMutableArray *)getWithRequestParameter:(id)parameters withNumber:(NSString *)num withPage:(NSString *)page {
    NSMutableArray *dataArr = [NSMutableArray array];
    NSString *urlStr = [NSString stringWithFormat:@"%@advertisement/myselfAdv",BaseHttpUrl];
    NSDictionary *parameter = @{@"pageStart":num,
                                 @"pageSize":page
                                 };
    [SZHTTPSReqManager getRequestWithUrlString:urlStr appendParameters:parameter successBlock:^(id responseObject) {
        if ([responseObject[@"data"] integerValue] == 0) {
            NSMutableArray *data = responseObject[@"data"][@"dataList"];
            for (NSDictionary *dict in data) {
                
            }
        }
    } failureBlock:^(NSError *error) {
        
    }];
    return dataArr;
}


//-(RACSignal*)signalRequestC2CH5LoginParameter:(id)parameters{
//
//    RACSignal *dataSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
//        [SZHTTPSReqManager postRequestWithUrlString:SZC2CH5LoginUrl appendParameters:parameters bodyParameters:nil successBlock:^(id responseObject) {
//            [subscriber sendNext:responseObject];
//            [subscriber sendCompleted];
//        } failureBlock:^(NSError *error) {
//            [subscriber sendError:error];
//        }];
//
//        return nil;
//    }];
//
//    return dataSignal;
//
//}

@end
